package net.loodies;


import android.util.Log;
import android.widget.FrameLayout;

public class Manager {

	protected static final String TAG = "Manager";
	//public static Activity g_currentActivity;
	static boolean			 g_KillAllOverlaysAsked = false;
	// TODO
	public static int	g_ScreenWidth  = 320;
	public static int	g_ScreenHeight = 460;
	
	public static void 			AskForKillAllOverlays(){
		g_KillAllOverlaysAsked = true;
	}
	
	
	public static boolean 	CheckActivities(){
		if(g_KillAllOverlaysAsked){
			Stop();
			g_KillAllOverlaysAsked = false;
		}
		return g_KillAllOverlaysAsked;
	}
	

//	public static void OnTouchEvent(float f,float g){
//		
//	}
	public static float accelerationx;

	 public static float accelerationy;

	 public static float accelerationz;
	public static boolean quadfocused;
	public static FrameLayout mFrameLayoutParent;
	public static boolean g_RemoveDone=false;
	public static float mTravellerGravity = 9.8f;
	public static float mBouncerSpeed   = 0.08f;
	public static long  mTimeToDisapear = 5000;
	


    public static void onAccelerationChanged(float x, float y, float z) {
    	//Log.v(TAG, "onAccelerationChanged " + x +" "+ y+" "+z);
		
		accelerationx = x;
		accelerationy = y;
		accelerationz = z;
    }
	public static void 			Reset(){
		g_KillAllOverlaysAsked = false;
		g_RemoveDone=false;
	}


	public static void Stop() {
		// TODO Auto-generated method stub
		Log.v(TAG, "STOPPPPPPPPPPPPPPPP ");
		
	}


	public static FrameLayout getFrameLayoutParent() {
		return mFrameLayoutParent;
	}


	public static void setFrameLayoutParent(FrameLayout mFrameLayoutParent) {
		Manager.mFrameLayoutParent = mFrameLayoutParent;
	}
	
	
}
